#!/bin/bash

echo "Disable iptables on elastix"
echo "service iptables stop # won't work cos cron will restart it after a while"
echo "chkconfig iptables of # disable it forever or add iptables rulez"

IP=192.168.11.25

#==============================================================================
# Usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
#			 [-l limit] [-o ssh_option] [-P port] [-S program]
#			 [[user@]host1:]file1 ... [[user@]host2:]file2
scp 
#==============================================================================
# Usage: pscp [options] [user@]host:source target
#        pscp [options] source [source...] [user@]host:target
#        pscp [options] -ls [user@]host:filespec
# Options:
#   -V        print version information and exit
#   -pgpfp    print PGP key fingerprints and exit
#   -p        preserve file attributes
#   -q        quiet, don't show statistics
#   -r        copy directories recursively
#   -v        show verbose messages
#   -load sessname  Load settings from saved session
#   -P port   connect to specified port
#   -l user   connect with specified username
#   -pw passw login with specified password
#   -1 -2     force use of particular SSH protocol version
#   -4 -6     force use of IPv4 or IPv6
#   -C        enable compression
#   -i key    private key file for authentication
#   -noagent  disable use of Pageant
#   -agent    enable use of Pageant
#   -batch    disable all interactive prompts
#   -unsafe   allow server-side wildcards (DANGEROUS)
#   -sftp     force use of SFTP protocol
#   -scp      force use of SCP protocol#COPY='/cygdrive/c/bin/putty/PSCP.exe root@'$IP
# /cygdrive/c/bin/putty/pscp.exe

PWD=hwtest
COPY='/cygdrive/c/bin/putty/pscp -scp'

echo ==========================================================================
echo COPYing
`$COPY` -l root -pw $PWD *.h $IP:/tmp/


echo "Bress eni ki to kontinju!"; read